<?php
session_start();
include_once 'include/config.php';
include('gloable.php');

if($_SESSION['login'] == FALSE){
	echo "<script>window.location.href='log in.php';</script>";
	}


$pid = $_GET['id'];
$s_uid = $_SESSION['uid'];
$s_date = date("Y-m-d H:i:s",time()+8*3600);

$exec="insert into shoucang (s_pid,s_uid,s_date) values ('".$pid."','".$s_uid."','".$s_date."')";
$result=mysql_query($exec) or die(mysql_error());
mysql_close();
echo "<script>alert('The successful');window.location.href='PersonalCenter.php';</script>";

?>